package rmmk.zadanie1;

import java.util.Random;

public class DataSource {
	public static Integer[] getPesymistic(int size){
		Integer[] array = new Integer[size];
		
		for(int i = 0; i < size; ++i)
		{
			array[i] = size-i;
		}
		
		return array;
	}
	
	public static Integer[] getNormal(int size){
		Integer[] array = new Integer[size];
		
		Random r = new Random();
		
		for(int i = 0; i < size; ++i)
			array[i] = r.nextInt();
		
		return array;
	}
	
	public static Integer[] getOptimal(int size){
		Integer[] array = new Integer[size];
		
		Random r = new Random();
		
		for(int i = 0; i < size; ++i)
			array[i] = i;
		
		return array;
	}
}
